require(['global'], function(global){
	require.config({
		baseUrl: global.context + '/assets/js',
		paths : {
			// the left side is the module ID, the right side is the path to
			// the jQuery file, relative to baseUrl. Also, the path should NOT include
			// the '.js' file extension. This example is using jQuery located at
			// vendor/jquery/jquery-1.11.0.js, relative to the HTML page.
			'jquery' : '../vendor/jquery/jquery-1.11.0',
			'bootstrap' : '../vendor/bootstrap/js/bootstrap',
			'underscore': '../vendor/underscore/underscore',
			'jquery.ui' : '../vendor/jquery-ui/js/jquery-ui',
			'jquery.query-object' : '../vendor/jquery-query-object/jquery.query-object',
			'jquery.validate' : '../vendor/jquery-validation/jquery.validate',
			'jquery.spinner' : '../vendor/jquery.spinner/jquery.spinner',
			'jquery.scrollto' : '../vendor/jquery.scrollTo/jquery.scrollTo',
			'jquery.resize' : '../vendor/jquery-resize/jquery.ba-resize',
			'jquery.debounce' : '../vendor/jquery-throttle-debounce/jquery.ba-throttle-debounce',
			'jquery.pnotify' : '../vendor/pnotify/jquery.pnotify',
			'jquery.chosen' : '../vendor/chosen/chosen.jquery',
			'plupload' : '../vendor/plupload/js/plupload.full.min',
			'icheck' : '../vendor/icheck/icheck',
			'bootstrap.typeahead' : '../vendor/bootstrap.typeahead/bootstrap3-typeahead',
			'select2' : '../vendor/select2/select2',
			'ztree' : '../vendor/ztree/js/jquery.ztree.all-3.5',
			'handlebars' : '../vendor/handlebars/handlebars-v2.0.0',
			'jquery-bridget/jquery.bridget': '../vendor/masonry/masonry.pkgd',
			'holder' : '../vendor/holder/holder-2.3.1',
			'imagesloaded' : '../vendor/imagesloaded/imagesloaded.pkgd',
			'jquery.infinitescroll' : '../vendor/infinite-scroll/jquery.infinitescroll',
			'masonry' : '../vendor/masonry/masonry.pkgd',
			'modernizr' : '../vendor/modernizr/modernizr-2.7.1',
			'requirejs/text' : '../vendor/requirejs/plugins/text',
			'requirejs/i18n' : '../vendor/requirejs/plugins/i18n',
			'requirejs/domready' : '../vendor/requirejs/plugins/domReady',
			'requirejs/cs' : '../vendor/requirejs/plugins/cs',
			'datatables' : '../vendor/datatables/js/jquery.dataTables',
			'datatables.tabletools' : '../vendor/datatables/extensions/TableTools/js/dataTables.tableTools',
			'datatables.bootstrap' : '../vendor/datatables/extensions/bootstrap/js/dataTables.bootstrap',
			'datatables.fixedcolumns' : '../vendor/datatables/extensions/FixedColumns/js/dataTables.fixedColumns',
			'jquery.migrate':'../vendor/jquery.migrate/jquery.migrate',
			'ckeditor':'../vendor/ckeditor/ckeditor',
			'ckfinder':'../vendor/ckfinder/ckfinder',
			'zeroclipboard':'../vendor/zeroclipboard/ZeroClipboard',
			'bootstrap-datepicker':'../vendor/date-picker/bootstrap-datepicker',
			'bootstrap-datepicker.zh-CN':'../vendor/date-picker/locales/bootstrap-datepicker.zh-CN'
		},
		// Remember: only use shim config for non-AMD scripts,
		// scripts that do not already call define(). The shim
		// config will not work correctly if used on AMD scripts,
		// in particular, the exports and init config will not
		// be triggered, and the deps config will be confusing
		// for those cases.
		shim : {
			'modernizr': {
				exports: 'Modernizr'
			},
			'holder': {
				exports: 'Holder'
			},
			'underscore': {
				exports: '_'
			},
			'bootstrap': {
				deps : [ 'jquery' ]
			},
			'jquery.ui': {
				deps : [ 'jquery' ]
			},
			'jquery.query-object': {
				deps : [ 'jquery' ]
			},
			'jquery.validate': {
				deps : [ 'jquery' ]
			},
			'jquery.spinner' : {
				deps : [ 'jquery' ]
			},
			'jquery.scrollto' : {
				deps : [ 'jquery' ]
			},
			'jquery.resize' : {
				deps : [ 'jquery' ]
			},
			'jquery.debounce' : {
				deps : [ 'jquery' ]
			},
			'jquery.chosen' : {
				deps : [ 'jquery' ]
			},
			'plupload' : {
				deps : [ 'jquery' ]
			},
			'icheck' : {
				deps : [ 'jquery' ]
			},
			'ztree' : {
				deps : [ 'jquery' ]
			},
			'jquery.pnotify' : {
				deps : [ 'jquery' ]
			},
			'jquery.infinitescroll' : {
				deps : [ 'jquery' ]
			},
			'select2' : {
				deps : [ 'jquery' ]
			},
			'plugins': {
				deps : [ 'jquery.pnotify' ]
			},
			'datatables': {
				deps : [ 'jquery' ]
			},
			'jquery.migrate':{
	            deps : ['jquery']
	        },
	        'datatables.bootstrap': {
				deps : [ 'datatables' ]
			},
	        'datatables.tabletools': {
				deps : [ 'datatables.bootstrap' ]
			},
			'datatables.fixedcolumns': {
				deps : [ 'datatables.tabletools' ]
			},
			'bootstrap-datepicker':{
				deps : ['jquery']
			},
			'bootstrap-datepicker.zh-CN':{
				deps : ['jquery', 'bootstrap-datepicker']
			}
		}
	});
});